﻿<Window x:Class="DynaCAD.ProjectWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wpg="clr-namespace:System.Windows.Controls"
        Title="PROJE OLUŞTUR" Height="1080" Width="1240" WindowState="Maximized" Closing="Window_Closing" KeyDown="Window_KeyDown">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="303*" />
            <ColumnDefinition Width="915*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="25" />
            <RowDefinition Height="98" />
            <RowDefinition Height="315*" />
            <RowDefinition Height="553*" />
        </Grid.RowDefinitions>
        <StackPanel VerticalAlignment="Top" Height="50" Background="#FF11BA60" Grid.ColumnSpan="3">
            <TextBlock Text="Dynamic CAD" VerticalAlignment="Center" Margin="15,0,35,0" FontSize="30" FontFamily="Buxton Sketch"/>
        </StackPanel>
        <ToolBar Grid.Row="1"  VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="25" Background="#FFCAE5D7" Grid.ColumnSpan="3">
            <Menu IsMainMenu="True" VerticalAlignment="Stretch">
                <MenuItem VerticalAlignment="Top" Name="Dosya">
                    <MenuItem.Header>
                        <TextBlock Text="Dosya" VerticalAlignment="Center" TextAlignment="Center" />
                    </MenuItem.Header>
                    <MenuItem Header="Proje Aç"  Click="OpenProject" />
                    <MenuItem Header="Proje Kaydet" Click="SaveProject" />
                    <MenuItem Header="Yazdır" Click="PrintClick"/>
                </MenuItem>
                <MenuItem VerticalAlignment="Top" Name="Ekle">
                    <MenuItem.Header>
                        <TextBlock Text="Ekle" VerticalAlignment="Center" TextAlignment="Center" />
                    </MenuItem.Header>
                    <MenuItem Header="Nakış Ekle" Click="NakısEkleClick" />
                    <MenuItem Header="Not Ekle" Click="NoteEkleClick" />
                    <MenuItem Header="Şekil Ekle">
                        <MenuItem Header="Ok" Click="ArrowAddClick"/>
                        <MenuItem Header="Çift Ok" Click="DoubleArrowAddClick" />
                        <MenuItem Header="Düğme-İlik" Click="AddPatClick"/>
                        <MenuItem Header="Dikiş" Click="AddSeamClick"/>
                        <MenuItem Header="Eğri" Click="AddPathClick"/>
                    </MenuItem>
                </MenuItem>
            </Menu>
        </ToolBar>
        <Border Grid.Row="3" VerticalAlignment="Top" Height="30" BorderThickness="3" Margin="0,0,2,0" BorderBrush="#FFAAC5B7" CornerRadius="6">
            <DockPanel Background="#FFCAE5D7"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
                <TextBlock Text="MODEL:" Margin="10,0" VerticalAlignment="Center" HorizontalAlignment="Left" />
                <ComboBox Name="TemplateComboBox" Height="20" VerticalAlignment="Center" Margin="10,0,10,0" SelectionChanged="TemplateComboBoxSelectionChanged" />
            </DockPanel>
        </Border>
        <TabControl Name="TABS" Grid.Row="3" HorizontalAlignment="Stretch"  Background="Transparent" TabStripPlacement="Left" Margin="0,30,0,0" >
        </TabControl>
        <TabControl Name="ProjectTABS" Grid.Row="3" Grid.Column="1" SelectionChanged="TabControlSelectionChanged" Grid.RowSpan="2">
            <TabItem Header="Gömlek Genel Görünüm" Name="GeneralViewTabItem">
                <Grid Name="GeneralViewGrid" Background="White" ClipToBounds="True" MouseMove="GeneralViewGridMouseMove" MouseWheel="GeneralViewGridMouseWheel" MouseLeftButtonDown="GeneralViewGridMouseLeftButtonDown" MouseLeftButtonUp="GeneralViewGridMouseLeftButtonUp">
                    <StackPanel Name="GeneralViewStackPanel" VerticalAlignment="Top" HorizontalAlignment="Left">
                        <Canvas Name="GeneralViewParts" VerticalAlignment="Top" HorizontalAlignment="Left" />
                        <Canvas Name="GeneralViewShapes" VerticalAlignment="Top" HorizontalAlignment="Left">
                            <Canvas/>
                        </Canvas>
                        <Canvas Name="GeneralViewTemplateCanvas" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    </StackPanel>
                </Grid>
            </TabItem>
            <TabItem Header="Gömlek Yaka + Manşet" Name="CollarTabItem">
                <Grid Name="CollarGrid" Background="White" ClipToBounds="True" MouseMove="CollarGridMouseMove" MouseWheel="CollarGridMouseWheel" MouseLeftButtonDown="CollarGridMouseLeftButtonDown" MouseLeftButtonUp="CollarGridMouseLeftButtonUp">
                    <StackPanel Name="CollarStackPanel" VerticalAlignment="Top" HorizontalAlignment="Left">
                        <Canvas Name="CollarParts" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                        <Canvas Name="CollarShapes" VerticalAlignment="Top" HorizontalAlignment="Left"> 
                            <Canvas/>
                        </Canvas>
                        <Canvas Name="CollarTemplateCanvas" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    </StackPanel>
                </Grid>
            </TabItem>
            <TabItem Header="Gömlek Ön Beden" Name="FrontSize">
                <Grid Name="FrontSizeGrid" Background="White" ClipToBounds="True" MouseMove="FrontSizeGridMouseMove" MouseWheel="FrontSizeGridMouseWheel" MouseLeftButtonDown="FrontSizeGridMouseLeftButtonDown" MouseLeftButtonUp="FrontSizeGridMouseLeftButtonUp">
                    <StackPanel Name="FrontSizeStackPanel" VerticalAlignment="Top" HorizontalAlignment="Left">
                        <Canvas Name="FrontSizeParts" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                        <Canvas Name="FrontSizeShapes" VerticalAlignment="Top" HorizontalAlignment="Left">
                            <Canvas/>
                        </Canvas>
                        <Canvas Name="FrontSizeTemplateCanvas" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    </StackPanel>
                </Grid>
            </TabItem>
            <TabItem Header="Gömlek Arka Beden" Name="BackSize1">
                <Grid Name="BackSizeGrid1" Background="White" ClipToBounds="True" MouseMove="BackSizeGrid1MouseMove" MouseWheel="BackSizeGrid1MouseWheel" MouseLeftButtonDown="BackSizeGrid1MouseLeftButtonDown" MouseLeftButtonUp="BackSizeGrid1MouseLeftButtonUp">
                    <StackPanel Name="BackSizeStackPanel1" VerticalAlignment="Top" HorizontalAlignment="Left">
                        <Canvas Name="BackSizeParts1" VerticalAlignment="Top" HorizontalAlignment="Left" />
                        <Canvas Name="BackSizeShapes1" VerticalAlignment="Top" HorizontalAlignment="Left">
                            <Canvas/>
                        </Canvas>
                        <Canvas Name="BackSizeTemplateCanvas" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    </StackPanel>
                </Grid>
            </TabItem>
            <TabItem Header="Gömlek Arka Beden" Name="BackSize2">
                <Grid Name="BackSizeGrid2" Background="White" ClipToBounds="True" MouseMove="BackSizeGrid2MouseMove" MouseWheel="BackSizeGrid2MouseWheel" MouseLeftButtonDown="BackSizeGrid2MouseLeftButtonDown" MouseLeftButtonUp="BackSizeGrid2MouseLeftButtonUp">
                    <StackPanel Name="BackSizeStackPanel2" VerticalAlignment="Top" HorizontalAlignment="Left">
                        <Canvas Name="BackSizeParts2" VerticalAlignment="Top" HorizontalAlignment="Left" />
                        <Canvas Name="BackSizeShapes2" VerticalAlignment="Top" HorizontalAlignment="Left">
                            <Canvas/>
                        </Canvas>
                        <Canvas Name="BackSizeTemplateCanvas2" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    </StackPanel>
                </Grid>
            </TabItem>
            <TabItem Header="Ütü+Paket" Name="Iron">
                <Grid Name="IronGrid" Background="White" ClipToBounds="True" MouseMove="IronGridMouseMove" MouseWheel="IronGridMouseWheel" MouseLeftButtonDown="IronGridMouseLeftButtonDown" MouseLeftButtonUp="IronGridMouseLeftButtonUp">
                    <StackPanel Name="IronStackPanel" VerticalAlignment="Top" HorizontalAlignment="Left">
                        <Canvas Name="IronParts" VerticalAlignment="Top" HorizontalAlignment="Left" />
                        <Canvas Name="IronShapes" VerticalAlignment="Top" HorizontalAlignment="Left">
                            <Canvas/>
                        </Canvas>
                        <Canvas Name="IronTemplateCanvas" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    </StackPanel>
                </Grid>
            </TabItem>
        </TabControl>
        <Border Grid.Row="2" Grid.ColumnSpan="3">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="28" />
                    <RowDefinition Height="28" />
                    <RowDefinition Height="28" />
                    <RowDefinition Height="20*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150" />
                    <ColumnDefinition Width="250" />
                    <ColumnDefinition Width="150" />
                    <ColumnDefinition Width="250" />
                    <ColumnDefinition Width="490*" />
                </Grid.ColumnDefinitions>
                <TextBlock Text="HAZIRLAYAN:" Margin="10,0,0,0" FontSize="15" VerticalAlignment="Bottom" HorizontalAlignment="Left" TextAlignment="Center" />
                <TextBox Name="PreparedBy" Grid.Column="1" Width="250" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                <TextBlock Text="PROJE İSMİ:" Margin="10,0,0,0" FontSize="15" VerticalAlignment="Bottom" HorizontalAlignment="Left" TextAlignment="Center" Grid.Row="1"/>
                <TextBox Name="ProjectName" Grid.Column="1" Grid.Row="1" Width="250" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                <TextBlock Text="Müşteri Temsilcisi:" Margin="10,0,0,0" FontSize="15" VerticalAlignment="Bottom" HorizontalAlignment="Left" TextAlignment="Center" Grid.Column="2" Grid.Row="0"/>
                <TextBox Name="Customer_Representative" Grid.Column="3" Grid.Row="0" Width="250" VerticalAlignment="Bottom" HorizontalAlignment="Left"  TextChanged="TextChanged"/>
                <TextBlock Text="Planlama:" Margin="10,0,0,0" FontSize="15" VerticalAlignment="Bottom" HorizontalAlignment="Left" TextAlignment="Center" Grid.Column="2" Grid.Row="1"/>
                <TextBox Name="Plan" Grid.Column="3" Grid.Row="1" Width="250" VerticalAlignment="Bottom" HorizontalAlignment="Left" TextChanged="TextChanged"  />
                <TextBlock Text="Teknik Çizim:" Margin="10,0,0,0" FontSize="15" VerticalAlignment="Bottom" HorizontalAlignment="Left" TextAlignment="Center" Grid.Column="2" Grid.Row="2"/>
                <TextBox Name="Technical_Drawing" Grid.Column="3" Grid.Row="2" Width="250" VerticalAlignment="Bottom" HorizontalAlignment="Left" TextChanged="TextChanged" />
            </Grid>
        </Border>
        <wpg:WpfPropertyGrid x:Name="pd1" Grid.Row="4"
                                         HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                                         HelpVisible="{Binding ElementName=ShowDescrip, Path=IsChecked}" 
                                         ToolbarVisible="{Binding ElementName=ShowToolbar, Path=IsChecked}"
                                         PropertySort="{Binding ElementName=ComboSort, Path=SelectedItem}" Background="#FFBDC7D7" />
        <GridSplitter Grid.Row="3" Width="2" Background="#FFAAC5B7" Grid.RowSpan="2" />
        <GridSplitter Grid.Row="4" HorizontalAlignment="Stretch" Height="2" VerticalAlignment="Top" ResizeDirection="Rows" Background="#FFAAC5B7"  />
        
    </Grid>
</Window>
